/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.tdmq.v20200217.models;

import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class DescribeMsgTraceResponse extends AbstractModel {

    /**
    * Produce information.
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("ProducerLog")
    @Expose
    private ProducerLog ProducerLog;

    /**
    * Service provider information.
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("ServerLog")
    @Expose
    private ServerLog ServerLog;

    /**
    * Consumption information.
Note: This field may return null, indicating that no valid values can be obtained.
    */
    @SerializedName("ConsumerLogs")
    @Expose
    private ConsumerLogs ConsumerLogs;

    /**
    * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
    */
    @SerializedName("RequestId")
    @Expose
    private String RequestId;

    /**
     * Get Produce information.
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return ProducerLog Produce information.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public ProducerLog getProducerLog() {
        return this.ProducerLog;
    }

    /**
     * Set Produce information.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param ProducerLog Produce information.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setProducerLog(ProducerLog ProducerLog) {
        this.ProducerLog = ProducerLog;
    }

    /**
     * Get Service provider information.
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return ServerLog Service provider information.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public ServerLog getServerLog() {
        return this.ServerLog;
    }

    /**
     * Set Service provider information.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param ServerLog Service provider information.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setServerLog(ServerLog ServerLog) {
        this.ServerLog = ServerLog;
    }

    /**
     * Get Consumption information.
Note: This field may return null, indicating that no valid values can be obtained. 
     * @return ConsumerLogs Consumption information.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public ConsumerLogs getConsumerLogs() {
        return this.ConsumerLogs;
    }

    /**
     * Set Consumption information.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param ConsumerLogs Consumption information.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public void setConsumerLogs(ConsumerLogs ConsumerLogs) {
        this.ConsumerLogs = ConsumerLogs;
    }

    /**
     * Get The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. 
     * @return RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public String getRequestId() {
        return this.RequestId;
    }

    /**
     * Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     * @param RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public void setRequestId(String RequestId) {
        this.RequestId = RequestId;
    }

    public DescribeMsgTraceResponse() {
    }

    /**
     * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
     *       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
     */
    public DescribeMsgTraceResponse(DescribeMsgTraceResponse source) {
        if (source.ProducerLog != null) {
            this.ProducerLog = new ProducerLog(source.ProducerLog);
        }
        if (source.ServerLog != null) {
            this.ServerLog = new ServerLog(source.ServerLog);
        }
        if (source.ConsumerLogs != null) {
            this.ConsumerLogs = new ConsumerLogs(source.ConsumerLogs);
        }
        if (source.RequestId != null) {
            this.RequestId = new String(source.RequestId);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap<String, String> map, String prefix) {
        this.setParamObj(map, prefix + "ProducerLog.", this.ProducerLog);
        this.setParamObj(map, prefix + "ServerLog.", this.ServerLog);
        this.setParamObj(map, prefix + "ConsumerLogs.", this.ConsumerLogs);
        this.setParamSimple(map, prefix + "RequestId", this.RequestId);

    }
}

